ga.core.validation
Interface IValidator<T extends IIndividual<T>>
- Type Parameters:
T
- The generic type of individuals.
- All Known Implementing Classes:
- RuleValidator
public interface IValidator<T extends IIndividual<T>>
Interface for an individual validator.
- Since:
- 11.08.2012
- Author:
- Stephan Dreyer
Method Summary |
boolean |
isValid(T individual,
GAContext context)
Validates an individual. |
isValid
boolean isValid(T individual,
GAContext context)
- Validates an individual.
- Parameters:
individual
- The individual to test for being valid.context
- The GA context.
- Returns:
true
if the individual is valid, false otherwise.- Since:
- 11.08.2012